import { BrowserRouter as Router, Route, Routes } from "react-router-dom"
import routes from '../../route/router';

export default function App() {
  return (
    <>
      <Router>
        <Routes>
          {routes.map((r) => (
            <Route
              key={r.path}
              path={r.path}
              element={r.component()}
            />
          ))}
        </Routes>
      </Router>
    </>
  )
}